<?php
// +----------------------------------------------------------------------
// | SparkShop 坚持做优秀的商城系统
// +----------------------------------------------------------------------
// | Copyright (c) 2022~2099 http://sparkshop.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai
// +----------------------------------------------------------------------
use think\facade\Route;

// 商品详情
Route::get('goods/:id/:type?', 'goods/detail')->pattern(['id' => '\d+', 'type' => '\d+']);
// 商品的规格
Route::get('goodsRule', 'goods/goodsRuleDetail');
// 退款详情
Route::get('refundDetail/:id', 'userOrder/refundDetail');
// 用户订单详情
Route::get('detail/:id', 'user/detail');
// 退款详情
Route::get('refund/:type/:id', 'userOrder/refund');
// 物流信息
Route::get('express/:id', 'userOrder/express');
// 售后订单
Route::get('afterOrder', 'userOrder/afterOrder');
// 评价
Route::get('appraise/:order_id/:order_detail_id', 'userOrder/appraise');
// 商品秒杀
Route::get('seckill/:seckill_id', 'seckill/goods');
// 创建订单
Route::post('order$', 'order/index');
// 试算
Route::post('order/trial', 'order/trial');
// 用户协议
Route::get('agreement', 'index/agreement');
// 商品分类
Route::get('cate/:id/:level', 'cate/index');
